<div class="sidebar_detail" >
	<div class="tab-header">
		<div class="title">
			<i class="fa fa-home"></i>添加酒店
		</div>
		<div class="tool">
			<button type="button" class="btn btn-default" ng-click="addSupport.save()" ng-disabled="addHotelForm.$invalid">
				<i class="fa fa-outdent"></i>保存
			</button>
		</div>
	</div>
	<ul class="nav nav-tabs" role="tablist" style="clear:both">
		<li class="active"><a data-target="#hotelBaseInfo" role="tab" data-toggle="tab">基本信息</a></li>
	</ul>
	<div class="tab-content">
		<div class="tab-pane active" id="hotelBaseInfo">
			<form id="addHotelForm" name="addHotelForm" novalidate>
				<!--与上传图片在同一行的内容 开始 -->
				<div class="row">
					<div class="col-md-6 form-horizontal">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label"><span class="notNull" >*</span>酒店名称:</label>
							<div class="col-md-8 col-sm-10">
								<input name="addHotelName" type="text" class="form-control" ng-model="addSupport.entity.name" ng-maxlength="32" required>
								<span class="glyphicon glyphicon-ok form-control-feedback" ng-show="addHotelForm.addHotelName.$dirty && addHotelForm.addHotelName.$valid"></span>
								<span class="error_tips" ng-show="addHotelForm.addHotelName.$error.maxlength">最多不能超过32个字符！</span>
							</div>
						</div>
					</div>
					<div class="col-md-6 form-horizontal" style="margin-left:-26px;">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label">酒店代码:</label>
							<div class="col-md-8 col-sm-10">
								<input id="code" name="code" type="text" class="form-control" ng-model="addSupport.entity.code" disabled>
							</div>
						</div>
					</div>
				</div>

				<div class="row">
					<div class="col-md-6 form-horizontal" >
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label"><span class="notNull" >*</span>星　　级:</label>
							<div class="col-md-8 col-sm-10">
								<input id="levelName" name="levelName"  type="text" class="form-control" >
								<input name="level" type="hidden" class="form-control" ng-model="addSupport.entity.level" required>
								<span class="glyphicon glyphicon-ok form-control-feedback" ng-show="addHotelForm.level.$dirty && addHotelForm.level.$valid"></span>
							</div>
						</div>
					</div>
					<div class="col-md-6 form-horizontal" style="margin-left:-26px;">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label"><span class="notNull" >*</span>标   签:</label>
							<div class="col-md-8 col-sm-10">
								<input id="label" name="label" type="text" class="form-control" ng-model="addSupport.entity.label" required>
								<span class="glyphicon glyphicon-ok form-control-feedback" ng-show="addHotelForm.label.$valid"></span>
							</div>
						</div>
					</div>
				</div>
				
				<div class="row">
					<div class="col-md-6 form-horizontal" >
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label"><span class="notNull" >*</span>省　　份:</label>
							<div class="col-md-8 col-sm-10">
								<input id="provinceName" name="provinceName" type="text" class="form-control" required>
								<input name="province" type="hidden" class="form-control" ng-model="addSupport.entity.province" required>
								<span class="glyphicon glyphicon-ok form-control-feedback" ng-show="addHotelForm.province.$valid"></span>
							</div>
						</div>
					</div>
					<div class="col-md-6 form-horizontal" style="margin-left:-26px;">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label">城　　市:</label>
							<div class="col-md-8 col-sm-10">
								<input id="cityName" name="cityName" type="text" class="form-control" required>
								<input name="city" type="hidden" class="form-control" ng-model="addSupport.entity.city" required>
								<span class="glyphicon glyphicon-ok form-control-feedback" ng-show="addHotelForm.city.$valid"></span>
							</div>
						</div>
					</div>
				</div>

				<div class="row">
					<div class="col-md-6 form-horizontal ">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label">区　　县:</label>
							<div class="col-md-8 col-sm-10">
								<input id="zoneName" name="zoneName" type="text" class="form-control" required>
								<input name="area" type="hidden" class="form-control" ng-model="addSupport.entity.area" required>
								<span class="glyphicon glyphicon-ok form-control-feedback" ng-show="addHotelForm.area.$valid"></span>
							</div>
						</div>
					</div>
					<div class="col-md-6 form-horizontal" style="margin-left:-26px;" >
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label"><span class="notNull" >*</span>电   话:</label>
							<div class="col-md-8 col-sm-10">
								<input id="phone" name="phone" type="text" class="form-control" ng-model="addSupport.entity.phone"
									ng-pattern="/(^$)|^(((\+86)|(86))?1[34578]\d{9})$/" required>
								<span class="glyphicon glyphicon-ok form-control-feedback"
									ng-show="addHotelForm.phone.$dirty && addHotelForm.phone.$valid"></span>
								<span class="error_tips"
									ng-show="addHotelForm.phone.$error.pattern">电话格式不正确！</span>
							</div>
						</div>
					</div>

				</div>
				<div class="row">
					<div class="col-md-12 form-horizontal">
						<div class="form-group">
							<label class="col-sm-2 control-label"><span class="notNull" >*</span>详细地址 :</label>
							<div class="col-sm-10">
								<textarea id="detail" name="detail" class="form-control" rows="4" ng-model="addSupport.entity.detail" ng-maxlength="300" required></textarea>
								<span class="glyphicon glyphicon-ok form-control-feedback" ng-show="addHotelForm.detail.$dirty && addHotelForm.detail.$valid"></span>
								<span class="error_tips"
									ng-show="addHotelForm.detail.$error.maxlength">最多不能超过300个字符！</span>
							</div>

						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-12 form-horizontal">
						<div class="form-group">
							<label class="col-sm-2 control-label">照片上传</label>
							<div class="col-sm-10" id="multiFileUpload"></div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-12 form-horizontal">
						<div class="form-group">
							<label class="col-sm-2 control-label"></label>
							<div class="col-sm-10">
								<ul id="dowebok">
									<li ng-repeat="item in addSupport.bind.images" style="list-style-type: decimal;margin: 8px 0;"><img
										data-original="{{ item.key }}" src="{{ item.src }}" style="width: 90%;">
									</li>
								</ul>
								<input name="isOk" type="hidden" class="form-control" ng-model="addSupport.bind.isOk" required>
								<span class="glyphicon glyphicon-ok form-control-feedback" ng-show="addRoomStyleForm.isOk.$dirty && addRoomStyleForm.isOk.$valid"></span>
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>